package com.cardbaobao.cardbabyclient.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/**
 * Created by Jiangzx on 2017/9/19 17:32.
 */

public class QuickDebitFeeRateData {

    private ArrayList<FeeRate> rate_list;

    public ArrayList<FeeRate> getRate_list() {
        return rate_list;
    }

    public void setRate_list(ArrayList<FeeRate> rate_list) {
        this.rate_list = rate_list;
    }

    public static class FeeRate implements Parcelable {
        /**
         * channel_name : 银联
         * picture_path : /uploadFiles/uploadImgs/banner/20170914/b0bb28d1c93540e3aa8c4491b7400946.png
         * low_position : 100
         * high_position : 50000
         * sequence : 54
         * each_charge : 2
         * rate : 0.5
         * discount : 0.4
         * settlement : 1
         * channel_type : KQB010101
         */

        private String channel_name;
        private String picture_path;
        private String low_position;
        private String high_position;
        private String sequence;
        private String each_charge;
        private String rate;
        private String discount;
        private String settlement;
        private String channel_type;

        public String getChannel_name() {
            return channel_name;
        }

        public void setChannel_name(String channel_name) {
            this.channel_name = channel_name;
        }

        public String getPicture_path() {
            return picture_path;
        }

        public void setPicture_path(String picture_path) {
            this.picture_path = picture_path;
        }

        public String getLow_position() {
            return low_position;
        }

        public void setLow_position(String low_position) {
            this.low_position = low_position;
        }

        public String getHigh_position() {
            return high_position;
        }

        public void setHigh_position(String high_position) {
            this.high_position = high_position;
        }

        public String getSequence() {
            return sequence;
        }

        public void setSequence(String sequence) {
            this.sequence = sequence;
        }

        public String getEach_charge() {
            return each_charge;
        }

        public void setEach_charge(String each_charge) {
            this.each_charge = each_charge;
        }

        public String getRate() {
            return rate;
        }

        public void setRate(String rate) {
            this.rate = rate;
        }

        public String getDiscount() {
            return discount;
        }

        public void setDiscount(String discount) {
            this.discount = discount;
        }

        public String getSettlement() {
            return settlement;
        }

        public void setSettlement(String settlement) {
            this.settlement = settlement;
        }

        public String getChannel_type() {
            return channel_type;
        }

        public void setChannel_type(String channel_type) {
            this.channel_type = channel_type;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.channel_name);
            dest.writeString(this.picture_path);
            dest.writeString(this.low_position);
            dest.writeString(this.high_position);
            dest.writeString(this.sequence);
            dest.writeString(this.each_charge);
            dest.writeString(this.rate);
            dest.writeString(this.discount);
            dest.writeString(this.settlement);
            dest.writeString(this.channel_type);
        }

        public FeeRate() {
        }

        protected FeeRate(Parcel in) {
            this.channel_name = in.readString();
            this.picture_path = in.readString();
            this.low_position = in.readString();
            this.high_position = in.readString();
            this.sequence = in.readString();
            this.each_charge = in.readString();
            this.rate = in.readString();
            this.discount = in.readString();
            this.settlement = in.readString();
            this.channel_type = in.readString();
        }

        public static final Parcelable.Creator<FeeRate> CREATOR = new Parcelable.Creator<FeeRate>() {
            @Override
            public FeeRate createFromParcel(Parcel source) {
                return new FeeRate(source);
            }

            @Override
            public FeeRate[] newArray(int size) {
                return new FeeRate[size];
            }
        };
    }
}
